package cn.com.hhrcw.block.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author lixingxing
 * @since 2020-10-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BlockData implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 区块id
     */
    private String blockId;

    /**
     * 类型
     */
    private String type;

    /**
     * 图片
     */
    private String image;

    /**
     * 标题
     */
    private String title;

    /**
     * 跳转地址
     */
    private String redirect;

    /**
     * 数据id
     */
    private String sourceId;

    /**
     * 是否打开新页面 true 是, false 否
     */
    private Boolean open;

    /**
     * 是否启用 true 启用 false 停用
     */
    private Boolean disabled;

    /**
     * 排序
     */
    private Integer sequence;

    private Date createTime;

    private String createBy;

    private Date updateTime;

    private String updateBy;

}
